/**
 * TODO
 * ConfigServiceImpl.java 2017年6月16日 下午3:53:43 by panxinwen 
 * Copyright(C) 2014-2020 netease - easegame, All Rights Reserved.
 */
package com.hjb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.ConfigService;
import com.hjb.service.domain.Config;
import com.hjb.service.mapper.ConfigMapper;

import tk.mybatis.mapper.entity.Example;

/**
 * @author <a href="mailto:panxinwen@yingu.com">Pan Xinwen</a>
 * @version 1.0 2017年6月16日 下午3:53:43
 */
@Service
public class ConfigServiceImpl implements ConfigService {
	
	@Autowired
	private ConfigMapper configMapper;
	
	@Override
	public List<Config> getBannerPic() {
		Example example = new Example(Config.class);
		example.createCriteria().andEqualTo("configKey","banner");
		return configMapper.selectByExample(example);
	}

}
